home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks96 / BetterADsecurity.sit / Better AD security / Source / ES Address Table.h < prev    next >
Text File  |  1996-06-21  |  2KB  |  61 lines

  1. /*    NAME:
  2.         ES Address Table.h
  3.  
  4.     WRITTEN BY:
  5.         Dair Grant
  6.                  
  7.     DESCRIPTION:
  8.         Header file for ES Address Table.c. Contains the definition of a
  9.         standard address table for use with Extension Shell.
  10.  
  11.     ___________________________________________________________________________
  12. */
  13. #ifndef __ES_ADDRESS_TABLE__
  14. #define __ES_ADDRESS_TABLE__
  15. //=============================================================================
  16. //        Include files                                                                 
  17. //-----------------------------------------------------------------------------
  18. #include "ES.h"
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34. //=============================================================================
  35. //        Structures                                                                 
  36. //-----------------------------------------------------------------------------
  37. // The default address table has a "magic" value used to allow a Control
  38. // Panel (for example) to make sure that it gets back what it expects when
  39. // it asks Gestalt for the address table address.  Recommended values of
  40. // "magic" include any four letter character constant *other* than the
  41. // Gestal selector which returns the address table address.  The "version"
  42. // value can be used for a similar sanity checking purpose.  It allows
  43. // changes in the format of the address table to be detected by all
  44. // versions of a cdev/INIT pair.  If a mismatch between expected and actual
  45. // table versions occurs, appropriate action can be taken.  Following these
  46. // two fields  an array of ProcPtrs.
  47. //
  48. // To extend the address table, add fields after theTable.
  49. //-----------------------------------------------------------------------------
  50. #pragma options align=mac68k
  51. typedef struct {
  52.     long            magicNumber;
  53.     long            versionNumber;
  54.     ProcPtr            theTable[kMaxNumCodeResources+1];
  55. } ESAddressTable;
  56. #pragma options align=reset
  57.  
  58.  
  59.  
  60. #endif
  61.